/** 
 * Tester for The Date Class 12/2012
 * @author yevgenis
 *
 */
import java.util.Scanner;

public class DateTester {
	
	public static void main (String ARGC[])
	{
		Scanner scan = new Scanner(System.in);
		
		System.out.println("Enter Date1 (dd mm yyyy):");
		Date d1 = new Date( scan.nextInt() , scan.nextInt() ,scan.nextInt());

		System.out.println("Enter Date2 (dd mm yyyy):");
		Date d2 = new Date( scan.nextInt() , scan.nextInt() ,scan.nextInt());
		
		
		Date d3 = new Date(d2);
		
		Date d4 = d3;
		
		
		//d1.setMonth(7);
		
		System.out.println("Date1 Year:"+d1.getYear());
		
		if(d1.isEqual(d2))
		{
			System.out.println("Date1 is Equals to Date2");
		}
		else
		{
			if(d1.compareTo(d2)==1)
				System.out.println("D1 Comes Before D2 "+d2);
			else if (d1.compareTo(d2)==2)
				System.out.println("D1 Comes After D2 "+d2);
		}
		
		if(d2.isEqual(d3))
			System.out.println("Date2 Is Equals to Date3 "+d2);
		else
			System.out.println("Date2 Is NOT Equals to Date3"+d3);
		

		
		if(d1.isLastCentury())
		{
			System.out.println("d1 Is from Last Century");
			
		}
		
		
		
	}

}
